﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MovieRental.DataInterfaces
{
    public interface IRepository<TEntity, TKey>
    {
        TEntity Load(TKey id);
        void Save(TEntity entity);
        void Delete(TEntity entity);
        void Delete(TKey id);
        IEnumerable<TEntity> LoadAll();
    }
}
